import React,{Component} from 'react';
import './index.css'

export default class FooterBtnBox extends Component{
    render(){
        const {price,btn1Name,btn2Name,btn1Click,btn2Click}=this.props

        return(
            <div className="footerBtnBox">
                <div>价格: <span>{price}</span></div>
                <button className="btnStyle" onClick={btn1Click}>
                    {btn1Name}
                </button>
                <button className="btnStyle" onClick={btn2Click}>
                    {btn2Name}
                </button>
            </div>
        )
    }
}

